<?php 
$status = $this->status; 
$shipping = $this->shipping;
$method = $this->method;
$state = $this->state;
?>
<div class='center_form'>
    <div class="center_form_right">
        <div class='center_form_btn_div' onclick='javascript:Common.submit();'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/save.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("saveBtn"); ?></div>
        </div>
        <div class='center_form_btn_div'  onclick='javascript:Common.gotoUrl("<?php echo HttpUtil::baseUrl(); ?>/order/order");'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/cancel.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("cancelBtn"); ?></div>
        </div>
    </div>
</div>


<div class="centerbig_form">
    <div class="center_top"><span class="center_top_title"><?php echo $this->translate("createorder"); ?></span></div>
        <div class="right_form_content">            
	        <div class="centerbig_right">           
               <div class="form_content">
                    <form action="<?php echo HttpUtil::baseUrl(); ?>/order/order/subadd" method="post" id="addorder"> 
                    <div>                                               
                            <input type="hidden" value="1" name="status" />
                            <div class='clear'></div>
                            <div class='form_line_div'>
                                <div class='form_element_label'><?php echo $this->translate("customerid"); ?></div>
                                <div class='form_element'><input type="text" id="customerid" name="customerid" value=""/></div>
                            </div>
                            <div class='clear'></div>
                            <div class='form_line_div'>
                                <div class='form_element_label'><?php echo $this->translate("shippingExpect"); ?></div>
                                <div class='form_element'>
                                    <select name="shipping">
                                        <?php foreach ($shipping as $key=>$value): ?>
                                           <option value="<?php echo $key;?>"><?php echo $value; ?></option>
                                        <?php endforeach; ?>     
                                    </select>
                                </div>
                            </div>
                            <div class='clear'></div>                            
                            <div class='form_line_div'>
                                <div class='form_element_label'><?php echo $this->translate("paymentMethod"); ?></div>
                                <div class='form_element'>
                                    <select name="method">
                                        <?php foreach ($method as $key=>$value): ?>                                        
                                           <option value="<?php echo $key; ?>" ><?php echo $value; ?></option>
                                        <?php endforeach; ?>    
                                    </select>
                                </div>
                            </div>
                            <div class='clear'></div>                          
                    </div>
                    <div>
                        <div style="float:left;width:45%" id="shippingaddress">
                            <div class="center_top_title"><?php echo $this->translate("shippingaddress"); ?></div>
                            <div class='clear'>&nbsp;</div>
                            <div class='form_element_label'><?php echo $this->translate("sfirstname"); ?></div>
                            <div class='form_element'><input type="text" id="sfirstname" name="sfirstname" value=""/></div>
                            <div class='clear'></div>
                            <div class='form_element_label'><?php echo $this->translate("slastname"); ?></div>
                            <div class='form_element'><input type="text" id="slastname" name="slastname" value=""/></div>
                            <div class='clear'></div>
                            <div class='form_element_label'><?php echo $this->translate("saddress1"); ?></div>
                            <div class='form_element'><input type="text" id="saddress1" name="saddress1" value=""/></div>
                            <div class='clear'></div>
                            <div class='form_element_label'><?php echo $this->translate("saddress2"); ?></div>
                            <div class='form_element'><input type="text" id="saddress2" name="saddress2" value=""/></div>
                            <div class='clear'></div>
                            <div class='form_element_label'><?php echo $this->translate("scity"); ?></div>
                            <div class='form_element'><input type="text" id="scity" name="scity" value=""/></div>
                            <div class='clear'></div>
                            <div class='form_element_label'><?php echo $this->translate("sstate"); ?></div>
                            <div class='form_element'>
                                <select name="sstate">
                                    <?php foreach ($state as $key=>$value) :?>
                                    <option value="<?php echo $key; ?>"><?php echo $value; ?></option>
                                    <?php endforeach; ?>
                                </select>
                            </div>
                            <div class='clear'></div>
                            <div class='form_element_label'><?php echo $this->translate("szipcode"); ?></div>
                            <div class='form_element'><input type="text" id="szipcode" name="szipcode" value=""/></div>
                            <div class='clear'></div>
                            <div class='form_element_label'><?php echo $this->translate("sphone"); ?></div>
                            <div class='form_element'><input type="text" id="sphone" name="sphone" value=""/></div>
                            <div class='clear'></div>
                        </div>
                        <div style="float:right;width:50%">
                            <div class="center_top_title"><?php echo $this->translate("billingaddress"); ?></div>
                            <div class='clear'></div>
                            <div class='form_element'><input type="checkbox" name="sameAsSAddress" id="select" value="1" onclick="javascript:Order.closebillingaddress();"/></div>
                            <div class='center_form_btn_text'><?php echo $this->translate("sameasshippingaddress"); ?></div>
                            <div class='clear'></div>
                            <div id="billingaddress">
                                <div class='form_element_label'><?php echo $this->translate("bfirstname"); ?></div>
                                <div class='form_element'><input type="text" id="bfirstname" name="bfirstname" value=""/></div>
                                <div class='clear'></div>
                                <div class='form_element_label'><?php echo $this->translate("blastname"); ?></div>
                                <div class='form_element'><input type="text" id="blastname" name="blastname" value=""/></div>
                                <div class='clear'></div>
                                <div class='form_element_label'><?php echo $this->translate("baddress1"); ?></div>
                                <div class='form_element'><input type="text" id="baddress1" name="baddress1" value=""/></div>
                                <div class='clear'></div>
                                <div class='form_element_label'><?php echo $this->translate("baddress2"); ?></div>
                                <div class='form_element'><input type="text" id="baddress2" name="baddress2" value=""/></div>
                                <div class='clear'></div>
                                <div class='form_element_label'><?php echo $this->translate("bcity"); ?></div>
                                <div class='form_element'><input type="text" id="bcity" name="bcity" value=""/></div>
                                <div class='clear'></div>
                                <div class='form_element_label'><?php echo $this->translate("bstate"); ?></div>
                                <div class='form_element'>
                                    <select name="bstate">
                                        <?php foreach ($state as $key=>$value):?>
                                        <option value="<?php echo $key; ?>"><?php echo $value; ?></option>
                                        <?php endforeach; ?>
                                    </select>
                                </div>
                                <div class='clear'></div>
                                <div class='form_element_label'><?php echo $this->translate("bzipcode"); ?></div>
                                <div class='form_element'><input type="text" id="bzipcode" name="bzipcode" value=""/></div>
                                <div class='clear'></div>
                                <div class='form_element_label'><?php echo $this->translate("bphone"); ?></div>
                                <div class='form_element'><input type="text" id="bphone" name="bphone" value=""/></div>
                                <div class='clear'></div>
                            </div>
                        </div>    
                    </div>
                    <div class='clear'></div>
                    <div>                    
                        <div style="float:left;width:25%" class="center_top_title"><?php echo $this->translate("items"); ?></div>
                        <div style="float:left;width:25%"><input type="button" name="add" value="Add New Items" onclick="javascript:Order.addnewitems();"/></div>
                        <div class='clear'></div>
                        <div id="items">
                            <div class='form_element_label'><?php echo $this->translate("itemsid"); ?></div>
                            <div class='form_element'><input type="text" id="itemid" name="itemid[]" value=""/></div>
                            <div class='clear'></div>
                        </div>
                    </div>
                    </form>
               </div>                    
	        </div>
            <div class='clear'></div>
        </div>         
</div>